import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.Rectangle;
import javax.swing.ImageIcon;

public class Platform extends Entity
{	
	public Platform(int x, int y)
	{
		super(x, y);		
	}
	
	public void draw(Graphics2D g2)
	{
		g2.drawImage(getPlatformImg(), x, y, null);		
	}
	
	public static Image getPlatformImg()
	{
		ImageIcon ic = new ImageIcon("Pictures/Platform Block.png");
		return ic.getImage();
	}
	
	public int getX()
	{
		return x;
	}
	
	public int getY()
	{
		return y;
	}
	
	public Rectangle getBounds()
	{
		return new Rectangle(x, y, getPlatformImg().getWidth(null),getPlatformImg().getHeight(null));
	}
}
